package com.WISSC.service;

import com.WISSC.bean.Massage;
import com.WISSC.bean.Occupation;
import com.WISSC.bean.OccupationImage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * <p>
 * 职业资格和图片关联表 服务类
 * </p>
 *
 * @author 张凯
 * @since 2019-05-06
 */
public interface OccupationImageService extends IService<OccupationImage> {
    /**
     * 图片上传
     * @param file
     * @return
     */
    Massage upload(MultipartFile file);

    /**
     * @param qualifications
     * @return 资格证书url
     */
    List<OccupationImage> getOccupationImageUrl(Long id, Integer qualifications);


    boolean removeByOccupationId(Long id);

    /**
     *
     * @param id
     * @return 编辑回显资格证书--url
     */
//    OccupationImage  getPictureUrl(Long id);

}
